const mysql = require('mysql')

// 配置数据库
const  conn = mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'123456',
    database:'hero'
})
// 开启连接 
conn.connect()

//导出数据库 conn
module.exports = conn